#include "restoretask.h"


RestoreTask::RestoreTask(BackupTask parent, QDateTime timestamp, RestoreTask::Location location)
    : BackupTask(parent)
{
    this->timestamp = timestamp;
    this->location = location;
    this->restoreTargetPath = restoreTargetPath;
    taskType = BackupTask::Restore;
}

BackupTask::TaskType RestoreTask::getTaskType()
{
    return taskType;
}

void RestoreTask::setLocation(RestoreTask::Location location)
{
    this->location = location;
}

void RestoreTask::setTargetPath(QString path)
{
    this->restoreTargetPath = path;
}
